CMP#.WIDTHVAL

Description

CMP#.WIDTHVAL sets the value count duration of the output pulse generated by the setpointClosed Setpoint is the target value that an automatic control system, for example PID controller, will aim to reach. It is used when CMP#.WIDTHTYPE for the setpoint is set to 0. Its scaling depends on CMP#.SOURCE.

It takes two command line arguments: the first specifies the setpoint, and the second specifies the value count duration.

Examples

Usage

Code

The following commands set the value count widths of channel 1 setpoint 8 to 5 deg and channel 2 setpoint 6 to 4000000 (slightly less than one thousandth of a revolution).

--> CMP1.SOURCE 11
--> AXIS1.UNIT.PROTARY 2
--> CMP1.WIDTHTYPE 8 0
--> CMP2.WIDTHVAL 8 5
--> CMP2.SOURCE 2
--> CMP2.WIDTHTYPE 6 0
--> CMP2.WIDTHVAL 6 4000000

Context

For more information please refer to Compare.

Versions

Action Version Notes
Implemented 02-06-00-000  

General Information

Type

Read/Write

Units

Depends upon CMP#.SOURCE

Range

Full position range

Default Value

0

Data Type

Float

See Also

CMP#.WIDTHTYPE

Stored in Non Volatile Memory

Yes

Variants Supported

All variants are supported.